import java.math.BigInteger;

public class problem6 {
    public static void main(String[] args) {
        BigInteger start = BigInteger.valueOf(1);
        BigInteger  end = BigInteger.valueOf(100);

        // Sum of Squares
        BigInteger sumOfSquares = BigInteger.valueOf(0);
        for (BigInteger i = start; i.compareTo(end) <= 0; i = i.add(BigInteger.valueOf(1))) {
            sumOfSquares = sumOfSquares.add(i.pow(2));
        }

        BigInteger sum = BigInteger.valueOf(0);
        for (BigInteger i = start; i.compareTo(end) <= 0; i = i.add(BigInteger.valueOf(1))) {
            sum = sum.add(i);
        }
        BigInteger squareOfSum = sum.pow(2);

        System.out.println(squareOfSum.subtract(sumOfSquares));
    }
}
